﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NopSolutions.NopCommerce.LuceneHelper
{
    public class Facet
    {
        public Facet(SpecificationAttributeValue attribute)
        {
            _attribute = attribute;
        }

        private readonly SpecificationAttributeValue _attribute;
        public SpecificationAttributeValue Attribute
        {
            get { return _attribute; }
        }

        private IList<SpecificationAttributeOptionValue> _options = new List<SpecificationAttributeOptionValue>();
        public IList<SpecificationAttributeOptionValue> Options
        {
            get { return _options; }
        }
        public void SortOptions()
        {
            _options = _options.OrderBy(x => x.Name).ToList();
        }

    }
}
